package trader.hibernate.dto;
// Generated Nov 9, 2012 4:30:38 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * WeightNote generated by hbm2java
 */
@Entity
@Table(name="weight_note"
    ,catalog="wstrader"
    , uniqueConstraints = @UniqueConstraint(columnNames="ref_number") 
)
public class WeightNote  implements java.io.Serializable {


     private Integer id;
     private String refNumber;
     private Character type;
     private Date date;
     private Date time;
     private Integer instId;
     private String truckNo;
     private String driver;
     private String area;
     private Short gradeId;
     private Float grossWeight;
     private Float tareWeight;
     private Float netWeight;
     private Short noOfBags;
     private Byte packingId;
     private Integer wrcId;
     private Integer qrId;
     private Short userId;
     private Byte status;
     private Short allocatedBags;
     private Float allocatedWeight;
     private Float stockWeight;
     private Short stockBags;

    public WeightNote() {
    }

    public WeightNote(String refNumber, Character type, Date date, Date time, Integer instId, String truckNo, String driver, String area, Short gradeId, Float grossWeight, Float tareWeight, Float netWeight, Short noOfBags, Byte packingId, Integer wrcId, Integer qrId, Short userId, Byte status, Short allocatedBags, Float allocatedWeight, Float stockWeight, Short stockBags) {
       this.refNumber = refNumber;
       this.type = type;
       this.date = date;
       this.time = time;
       this.instId = instId;
       this.truckNo = truckNo;
       this.driver = driver;
       this.area = area;
       this.gradeId = gradeId;
       this.grossWeight = grossWeight;
       this.tareWeight = tareWeight;
       this.netWeight = netWeight;
       this.noOfBags = noOfBags;
       this.packingId = packingId;
       this.wrcId = wrcId;
       this.qrId = qrId;
       this.userId = userId;
       this.status = status;
       this.allocatedBags = allocatedBags;
       this.allocatedWeight = allocatedWeight;
       this.stockWeight = stockWeight;
       this.stockBags = stockBags;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="ref_number", unique=true, length=50)
    public String getRefNumber() {
        return this.refNumber;
    }
    
    public void setRefNumber(String refNumber) {
        this.refNumber = refNumber;
    }
    
    @Column(name="type", length=1)
    public Character getType() {
        return this.type;
    }
    
    public void setType(Character type) {
        this.type = type;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="date", length=10)
    public Date getDate() {
        return this.date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }
    @Temporal(TemporalType.TIME)
    @Column(name="time", length=8)
    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }
    
    @Column(name="inst_id")
    public Integer getInstId() {
        return this.instId;
    }
    
    public void setInstId(Integer instId) {
        this.instId = instId;
    }
    
    @Column(name="truck_no", length=50)
    public String getTruckNo() {
        return this.truckNo;
    }
    
    public void setTruckNo(String truckNo) {
        this.truckNo = truckNo;
    }
    
    @Column(name="driver", length=50)
    public String getDriver() {
        return this.driver;
    }
    
    public void setDriver(String driver) {
        this.driver = driver;
    }
    
    @Column(name="area", length=3)
    public String getArea() {
        return this.area;
    }
    
    public void setArea(String area) {
        this.area = area;
    }
    
    @Column(name="grade_id")
    public Short getGradeId() {
        return this.gradeId;
    }
    
    public void setGradeId(Short gradeId) {
        this.gradeId = gradeId;
    }
    
    @Column(name="gross_weight", precision=9, scale=3)
    public Float getGrossWeight() {
        return this.grossWeight;
    }
    
    public void setGrossWeight(Float grossWeight) {
        this.grossWeight = grossWeight;
    }
    
    @Column(name="tare_weight", precision=9, scale=3)
    public Float getTareWeight() {
        return this.tareWeight;
    }
    
    public void setTareWeight(Float tareWeight) {
        this.tareWeight = tareWeight;
    }
    
    @Column(name="net_weight", precision=9, scale=3)
    public Float getNetWeight() {
        return this.netWeight;
    }
    
    public void setNetWeight(Float netWeight) {
        this.netWeight = netWeight;
    }
    
    @Column(name="no_of_bags")
    public Short getNoOfBags() {
        return this.noOfBags;
    }
    
    public void setNoOfBags(Short noOfBags) {
        this.noOfBags = noOfBags;
    }
    
    @Column(name="packing_id")
    public Byte getPackingId() {
        return this.packingId;
    }
    
    public void setPackingId(Byte packingId) {
        this.packingId = packingId;
    }
    
    @Column(name="wrc_id")
    public Integer getWrcId() {
        return this.wrcId;
    }
    
    public void setWrcId(Integer wrcId) {
        this.wrcId = wrcId;
    }
    
    @Column(name="qr_id")
    public Integer getQrId() {
        return this.qrId;
    }
    
    public void setQrId(Integer qrId) {
        this.qrId = qrId;
    }
    
    @Column(name="user_id")
    public Short getUserId() {
        return this.userId;
    }
    
    public void setUserId(Short userId) {
        this.userId = userId;
    }
    
    @Column(name="status")
    public Byte getStatus() {
        return this.status;
    }
    
    public void setStatus(Byte status) {
        this.status = status;
    }
    
    @Column(name="allocated_bags")
    public Short getAllocatedBags() {
        return this.allocatedBags;
    }
    
    public void setAllocatedBags(Short allocatedBags) {
        this.allocatedBags = allocatedBags;
    }
    
    @Column(name="allocated_weight", precision=9, scale=3)
    public Float getAllocatedWeight() {
        return this.allocatedWeight;
    }
    
    public void setAllocatedWeight(Float allocatedWeight) {
        this.allocatedWeight = allocatedWeight;
    }
    
    @Column(name="stock_weight", precision=9, scale=3)
    public Float getStockWeight() {
        return this.stockWeight;
    }
    
    public void setStockWeight(Float stockWeight) {
        this.stockWeight = stockWeight;
    }
    
    @Column(name="stock_bags")
    public Short getStockBags() {
        return this.stockBags;
    }
    
    public void setStockBags(Short stockBags) {
        this.stockBags = stockBags;
    }




}


